package com.mop.app.dal.entity;

import com.mop.app.common.BaseEntity;
import java.time.LocalDateTime;

/**
 * 资源收藏资源记录
 *
 * @author wchen
 * @since 2020-02-27
 */
public class AppUserCollect extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 资源id
     */
    private Long sourceId;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModified;


    public Long getUserId() {
        return userId;
    }

    public AppUserCollect setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public AppUserCollect setSourceId(Long sourceId) {
        this.sourceId = sourceId;
        return this;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public AppUserCollect setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
        return this;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public AppUserCollect setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
        return this;
    }

    @Override
    public String toString() {
        return "AppUserCollect{" +
        "userId=" + userId +
        ", sourceId=" + sourceId +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        "}";
    }
}
